<script>
$(document).ready(function(){
	$('.paging_new span a').each(function(){
		jQuery(this).attr("href",jQuery(this).attr("href")+"?<?php echo @$query_string ?>");
	});
	$('.paging_new span a').click(function() {
		$('div.aside').html("Loading...");
		var href = this.href; 
		$.ajax({
			dataType :'html',
			url: href,
			success: function(returnContent){
				$('div.aside').html(returnContent);
			}
		});
		return false;
	});
})
</script>

<div class="latest-news">
    <h3><?php __("Tin khác");?></h3>
    <ul>
    <?php foreach($list_topnews as $item): ?>
    <?php //debug($item); ?>
        <li>
            <div class="image"><a href="<?php echo $html->url(array('plugin' => 'news', 'controller' => 'news', 'action' => 'view', $item['News']['alias'], $alias));?>"><img src="<?php if($item['News']['image']) echo $html->url('/files/news/') . $html->getThumbnailName($item['News']['image']); else echo $html->url('/files/news/no-picture.jpg');?>" alt="Image" /></a></div>
            <h4><a href="<?php echo $html->url(array('plugin' => 'news', 'controller' => 'news', 'action' => 'view', $item['News']['alias'], $alias));?>"><?php echo $item['News']['title']?></a></h4>
            <em><?php echo date('d/m/Y',  strtotime($item['News']['news_date']));?></em>
        </li>
    <?php endforeach; ?>
    </ul>
    <?php echo $this->element('pagination/pagination', array('model' => 'News'))?>
</div>